import { defineStore } from 'pinia'
import { postAccountsetApi } from '@/api/accountset'

export const useAccountsetStore = defineStore('accountset', {
    state: () => {
        return {

        }
    },

    getters: {

    },

    actions: {
        doModify({ name, introduction, tel, position, logo }, address, { _id, refuse, loginKey, status }) {
            postAccountsetApi({ name, introduction, tel, position, logo, address, _id, refuse, loginKey, status })
        },
        modifyKey(loginKey, { _id, name, introduction, tel, position, logo, address, refuse, status }) {
            postAccountsetApi({ name, introduction, tel, position, logo, address, _id, refuse, loginKey, status })
        }
    }
})